 <template>
  <!-- 人员密集性分析 -->
  <div class="staff_content">
    <!-- 搜索框   -->
    <div class="staff_serch">
      <el-form class="table_serch">
        <div class="table_serch_labe" style="margin-left: 10px">
          <div class="table_serch_labe_title airplane" >机种</div>
                <Ariplandown  style="margin-left:5px" :modlulist="modlulist"  :formInline="formInline" ></Ariplandown>
        </div>
      

        <div class="table_serch_labe" style="margin-left: 10px">
          <div class="table_serch_labe_title">线体</div>
             <Linedrpdown  :linedroplist="linedroplist" :formInline="formInline"></Linedrpdown>
        </div>

        <div class="table_serch_labe" style="margin-left: 10px">  
          <div class="table_serch_labe_title">站点</div>
              <el-select
                  v-model="formInline.step"
                  clearable
                  size="mini"
                  style="margin-left: 5px; margin-top: 8px; width: 140px"
                  placeholder="请选择内容"
                >
                  <el-option label="MA480"  value="MA480"></el-option>
                   <el-option label="MA490"  value="MA490"></el-option>
              </el-select>
        </div>

     
        <!-- <div class="table_serch_labe" style="margin-left: 25px">
          <div class="table_serch_labe_title">缺陷</div>
          <el-form-item label="">
                <Defectoptions
                  :Defectlist="Defectlist"
                  :formInline="formInline"
                  ></Defectoptions>
          </el-form-item>
        </div> -->

        <div class="table_serch_labe table_date" style="margin-left: 20px">
          <div class="table_serch_labe_title">起始日期</div>
          <el-form-item label="">
            <StartTime  :formInline="formInline"></StartTime>
          </el-form-item>
        </div>

        <div class="table_serch_labe endtimer" style="margin-left: 10px">
          <div class="table_serch_labe_title">结束日期</div>
          <el-form-item label="">
            <Endtime :formInline="formInline"></Endtime>
          </el-form-item>
        </div>

        <div class="table_serch_labe table_item" style="margin-left: 0px">
          <div class="table_serch_labe_title">人员</div>
          <el-autocomplete
            size="mini"
            popper-class="my-autocomplete"
            style="
              width: 140px;
              height: 30px;
              margin-left: 10px;
              margin-top: 5px;
            "
            v-model="formInline.personid"
            @input="(e) => (formInline.personid = validForbid(e))"
            :fetch-suggestions="querySearch"
            placeholder="请输入内容"
            @select="handleSelect"
          >
            <i
              class="el-icon-edit el-input__icon"
              slot="suffix"
              @click="handleIconClick"
            >
            </i>
            <template slot-scope="{ item }">
              <div class="name">{{ item.value }}</div>
              <span class="addr">{{ item.address }}</span>
            </template>
          </el-autocomplete>
        </div>

        <div class="table_serch_labe" style="margin-right: 0%">
          <div class="table_serch_labe_title">班次</div>
               <el-select
                  v-model="formInline.class"
                  clearable
                  size="mini"
                  style="margin-left:10px; margin-top: 8px; width: 140px"
                  placeholder="请选择内容"
                >
                  <el-option label="白班"  value="白班"></el-option>
                   <el-option label="夜班"  value="夜班"></el-option>
              </el-select>
        </div>


        <div class="table_serch_labe table_btn" style="margin-left: 0%">
          <el-button
            type="primary"
            size="mini"
            style="height: 30px; margin-top: 5px"
            @click="staffdense"
            >查询</el-button
          >
          <!-- <el-button type="mini">刷新</el-button>
          <el-button type="mini">运行</el-button> -->
        </div>

        <!-- 文件上传 -->
      </el-form>
    </div>

    <div class="staff_count">
      <!-- 柱状图 -->
      <div id="staff_bra"></div>

      <!-- 饼状图 -->
      <div id="staff_bin"></div>
    </div>

    <div id="query_contion"></div>

    <div class="query_table">
      <div style="padding: 10px; font-size:8px">人员检测站点效能统计表</div>
      <el-table
        class="staff_list_table"
        :data="this.tablelistitems.slice(1)"
        border
        size="mini"
        highlight-current-row
         :header-cell-style="headClass"
         :cell-class-name="rowClass"
        :row-style="{ height: '10px' }"
        style="font-size: 8px;width:100%"
      >
        <el-table-column
        min-width=12
          v-for="(item, index) in this.tableitms[0]"
          :key="index"
          :prop="item"
          :label="item"
        >
        </el-table-column>
      </el-table>
    </div>

    <!--列表 -->
    <div class="staff_list">
      <div style="padding: 5px; font-size: 12px">复判人员信息表</div>
      <el-table
        class="staff_list_table"
        :data="this.tablelist.slice(1)"
        border
        size="mini"
        highlight-current-row
        :header-cell-style="headClass"
        :row-style="{ height: '10px' }"
        style="font-size: 10px"
      >
        <el-table-column
          v-for="(item, index) in this.listdata[0]"
          :key="index"
          :label="item"
          :prop="item"
        >
        </el-table-column>
      </el-table>

      <div class="tlop">
        <div class="block">
          <el-pagination
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :current-page="currentPage"
            :page-sizes="[50]"
            :page-size="pageSize"
            layout="total, sizes, prev, pager, next, jumper"
            :total="total"
          >
          </el-pagination>
        </div>
      </div>
    </div>

    <!-- <About></About> -->
    <div class="table_loding" v-show="isshow">
      <div class="table_title">加载中... ....</div>
      <div class="table_timer">网络请求延时: {{ timer }}秒</div>
    </div>

    <Popup
      v-show="Popup_show"
      @ClosePopup="ClosePopup"
      @cancelget="cancelget"
      :timer="timer"
    ></Popup>
  </div>
</template>
<script>

import Ariplandown from '../../../components/Airplandown/Airplandown'
import Linedrpdown from '../../../components/Linedropdown/Linedropdown'
// import Defectoptions from '../../../components/Defectoptions/Defectoptions'
import Endtime from '../../../components/endTime/Endtime'
import StartTime from '../../../components/StarTime/StartTime'
import axios from "axios";
import Popup from "../../Pop-up/Pop-up";
export default {
  components: {
    Popup,Ariplandown,Linedrpdown,StartTime,Endtime
    // About
  },
  data() {
    return {
      items: [],
      Defectlist:[],
      tablelistitems: [],
      tableitms: [],
      Popup_show: false,
      fileList: [],
      formData: "",
      timer: 0,
      isshow: false,
      isConfirm: true,
      valtimer: "",
      total: 0,
      currentPage: 1,
      pageSize: 50,
      formInline: {
        recipe: "",
        order: "",
        line: "",
        site: "",
        step:"",
        starttime: "",
        endtime: "",
        errorcode: "",
        class: "",
        type: [],
        filesUrl: "",
        personid: "",
        fileList: [],
        filename: "",
      },
        timeitem: [
        "人员",
        "00:00",
        "01:00",
        "02:00",
        "03:00",
        "04:00",
        "05:00",
        "06:00",
        "07:00",
        "08:00",
        "09:00",
        "10:00",
        "11:00",
        "12:00",
        "13:00",
        "14:00",
        "15:00",
        "16:00",
        "17:00",
        "18:00",
        "19:00",
        "20:00",
        "21:00",
        "22:00",
        "23:00",
      ],
      options: [],
      tableData: [],
      restaurants: [],
      titlelist: [],
      staffbar: [],
      staffbin: [],
      tableHader: [],
      caChe_key: "",
      listdata: [],
      tablelist: [],
      lineChart: [],
      modlulist:[],
      sitedrwn:[],
      linedroplist:[],
      pickerOptions0: {
        disabledDate: (time) => {
          if (this.formInline.endtime != "") {
            // console.log('1111111111111',time.getTime())
            return (
              time.getTime() > Date.now() ||
              time.getTime() > this.formInline.endtime
            );
          } else {
            return time.getTime() > Date.now();
          }
        },
      },
      pickerOptions1: {
        disabledDate: (time) => {
          return (
            time.getTime() < this.formInline.starttime ||
            time.getTime() > Date.now()
          );
        },
      },
    };
  },
  mounted() {
    this.getModelnolist()
  },
  methods: {

   getModelnolist(){
        this.ajax(`func/1023/selProductList`).then((res)=>{
          if(res.status == 200){
             this.modlulist = res.data.product;
             this.sitedrwn = res.data.step;
             this.linedroplist = res.data.line;
          }
        })
         this.ajax(`func/1023/selDef`).then((res)=>{
           if(res.status == 200){
                for(var k = 0; k < res.data.length; k++){
                    if(this.Defectlist.indexOf(res.data[k].DFT_TYPE) == -1){
                        this.Defectlist.push(res.data[k].DFT_TYPE)
                    }
                }
           }
        })
      },
   
     
    // 表头样式设置
      headClass () {
        return 'text-align: center;background:#696969;color:#fff'
      },


    //分页
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
      this.pageSize = val;
      this.staffpage();
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
      this.currentPage = val;
      this.staffpage();
    },

    ///请求数据接口
    staffdense() {
      // setTimeout(() => {
      //   if (this.staffbar.length == "") {
      //     this.Popup_show = true;
      //     this.Popup_timer = setInterval(() => {
      //       this.timer++;
      //     }, 1000);
      //   } else {
      //     return;
      //   }
      // }, 25000);
   if (this.formInline.starttime == "") {
        this.$message({
          showClose: true,
          message: "起始日期不能为空",
          type: "warning",
        });
      } else if (this.formInline.endtime == "") {
        this.$message({
          showClose: true,
          message: "结束日期不能为空",
          type: "warning",
        });
      } else if (this.formInline.endtime < this.formInline.starttime) {
        this.$message({
          showClose: true,
          message: "结束日期不能小于起始日期",
          type: "warning",
        });
      } else {
        const CancelToken = axios.CancelToken;
        this.ajax
          .get(
            `prod/1005?starttime=${this.formInline.starttime}&endtime=${this.formInline.endtime}&recipe=${this.formInline.recipe}&line=${this.formInline.line}&step=${this.formInline.step}&class=${this.formInline.class}&order=${this.formInline.order}&personid=${this.formInline.personid}&filesUrl=${this.formInline.filesUrl}&fileList=${this.formInline.fileList}&errorcode=${this.formInline.errorcode}&filename=${this.formInline.filename}`,
            {
              cancelToken: new CancelToken((c) => {
                this.cancel = c;
              }),
            }
          )
          .then((res) => {
            var relut = res.data;
            if (relut) {
              console.log(relut);
              // this.titlelist = [];
              let staffdata = relut;
              this.staffbar = staffdata.PersonBar;
              this.tableHader = staffdata.tableInfo.heads[0];
              this.caChe_key = staffdata.tableInfo.cache_key;
              this.total = staffdata.tableInfo.row_num;
              this.staffbin = staffdata.PersonBar;
              this.tableData = staffdata.PersonTable;
              this.lineChart = staffdata.lineChart;
              this.tableitms = staffdata.lineTable;
              if (this.staffbin.length) {
                // console.log('1111111111111')
                this.staff_bra();
                this.staff_bin();
              }else{
                   this.$message({
                          showClose: true,
                          message: '数据返回为空，请重新重新请求',
                          type: 'error'
                        });
                      setTimeout(()=>{
                         this.$router.go(0);
                      },300)
              }

                if(this.tableitms){
                  this.tableitms.unshift(this.timeitem);
                  this.Tabudataparsingss();
                  this.staffpage();
                }
              
 
              if (this.lineChart) {
                var chat;
                chat = this.$echarts.init(
                  document.getElementById("query_contion")
                );
                chat.dispose();
                this.query_contion();
              }
            }
          });
      }
    },

    //分页接口
    staffpage() {
      var url = `rtable/rk?page=${this.currentPage}&cpp=${this.pageSize}`;
      var besurl = url.replace("rk", this.caChe_key);
      this.ajax({
        url: besurl,
        method: "GET",
      }).then((res) => {
        res.data.unshift(this.tableHader);
        this.listdata = res.data;
        // console.log("==================",this.listdata);
        this.Tabudataparsing();
      });
    },

    ClosePopup() {
      this.Popup_show = false;
      clearInterval(this.Popup_timer);
    },

    Tabudataparsingss() {
      this.tablelistitems = [];
      // var po ;
      // console.log("------------------------", this.tableitms);
      var titlelist = this.tableitms[0];
      var a = titlelist[0];
      var b = titlelist[1];
      var c = titlelist[2];
      var d = titlelist[3];
      var e = titlelist[4];
      var f = titlelist[5];
      var g = titlelist[6];
      var h = titlelist[7];
      var io = titlelist[8];
      var j = titlelist[9];
      var k = titlelist[10];
      var L = titlelist[11];
      var m = titlelist[12];
      var n = titlelist[13];
      var o = titlelist[14];
      var p = titlelist[15];
      var q = titlelist[16];
      var r = titlelist[17];
      var s = titlelist[18];
      var t = titlelist[19];
      var u = titlelist[20];
      var v = titlelist[21];
      var w = titlelist[22];
      var x = titlelist[23];
      var y = titlelist[24];
      var z = titlelist[25];
      if (this.tableitms[0].length == 2) {
        for (let i = 1; i < this.tableitms.length; i++) {
          var objon = {};
          objon[a] = this.tableitms[i][0];
          objon[b] = this.tableitms[i][1];
          this.tablelistitems.push(objon);
        }
      } else if (this.tableitms[0].length == 3) {
        for (let i = 1; i < this.tableitms.length; i++) {
          var obj0 = {};
          obj0[a] = this.tableitms[i][0];
          obj0[b] = this.tableitms[i][1];
          obj0[c] = this.tableitms[i][2];
          // obj[d] = this.bartable[i][3];
          this.tablelistitems.push(obj0);
        }
      } else if (this.tableitms[0].length == 4) {
        for (let i = 1; i < this.tableitms.length; i++) {
          var obj = {};
          obj[a] = this.tableitms[i][0];
          obj[b] = this.tableitms[i][1];
          obj[c] = this.tableitms[i][2];
          obj[d] = this.tableitms[i][3];
          this.tablelistitems.push(obj);
        }
      } else if (this.tableitms[0].length == 5) {
        for (let i = 1; i < this.tableitms.length; i++) {
          var obj1 = {};
          obj1[a] = this.tableitms[i][0];
          obj1[b] = this.tableitms[i][1];
          obj1[c] = this.tableitms[i][2];
          obj1[d] = this.tableitms[i][3];
          obj1[e] = this.tableitms[i][4];
          this.tablelistitems.push(obj1);
        }
      } else if (this.tableitms[0].length == 6) {
        for (let i = 1; i < this.tableitms.length; i++) {
          var obj2 = {};
          obj2[a] = this.tableitms[i][0];
          obj2[b] = this.tableitms[i][1];
          obj2[c] = this.tableitms[i][2];
          obj2[d] = this.tableitms[i][3];
          obj2[e] = this.tableitms[i][4];
          obj2[f] = this.tableitms[i][5];
          this.tablelistitems.push(obj2);
        }
      } else if (this.tableitms[0].length == 7) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj3 = {};
          obj3[a] = this.tableitms[i][0];
          obj3[b] = this.tableitms[i][1];
          obj3[c] = this.tableitms[i][2];
          obj3[d] = this.tableitms[i][3];
          obj3[e] = this.tableitms[i][4];
          obj3[f] = this.tableitms[i][5];
          obj3[g] = this.tableitms[i][6];
          this.tablelistitems.push(obj3);
        }
      } else if (this.tableitms[0].length == 8) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj4 = {};
          obj4[a] = this.tableitms[i][0];
          obj4[b] = this.tableitms[i][1];
          obj4[c] = this.tableitms[i][2];
          obj4[d] = this.tableitms[i][3];
          obj4[e] = this.tableitms[i][4];
          obj4[f] = this.tableitms[i][5];
          obj4[g] = this.tableitms[i][6];
          obj4[h] = this.tableitms[i][7];
          this.tablelistitems.push(obj4);
          // console.log('pppppppppppppppppppppp',this.tablelistitems)
        }
      } else if (this.tableitms[0].length == 9) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj5 = {};
          obj5[a] = this.tableitms[i][0];
          obj5[b] = this.tableitms[i][1];
          obj5[c] = this.tableitms[i][2];
          obj5[d] = this.tableitms[i][3];
          obj5[e] = this.tableitms[i][4];
          obj5[f] = this.tableitms[i][5];
          obj5[g] = this.tableitms[i][6];
          obj5[h] = this.tableitms[i][7];
          obj5[io] = this.tableitms[i][8];
          this.tablelistitems.push(obj5);
        }
      } else if (this.tableitms[0].length == 10) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj6 = {};
          obj6[a] = this.tableitms[i][0];
          obj6[b] = this.tableitms[i][1];
          obj6[c] = this.tableitms[i][2];
          obj6[d] = this.tableitms[i][3];
          obj6[e] = this.tableitms[i][4];
          obj6[f] = this.tableitms[i][5];
          obj6[g] = this.tableitms[i][6];
          obj6[h] = this.tableitms[i][7];
          obj6[io] = this.tableitms[i][8];
          obj6[j] = this.tableitms[i][9];
          this.tablelistitems.push(obj6);
        }
      } else if (this.tableitms[0].length == 11) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj7 = {};
          obj7[a] = this.tableitms[i][0];
          obj7[b] = this.tableitms[i][1];
          obj7[c] = this.tableitms[i][2];
          obj7[d] = this.tableitms[i][3];
          obj7[e] = this.tableitms[i][4];
          obj7[f] = this.tableitms[i][5];
          obj7[g] = this.tableitms[i][6];
          obj7[h] = this.tableitms[i][7];
          obj7[io] = this.tableitms[i][8];
          obj7[j] = this.tableitms[i][9];
          obj7[k] = this.tableitms[i][10];
          this.tablelistitems.push(obj7);
        }
      } else if (this.tableitms[0].length == 12) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj8 = {};
          obj8[a] = this.tableitms[i][0];
          obj8[b] = this.tableitms[i][1];
          obj8[c] = this.tableitms[i][2];
          obj8[d] = this.tableitms[i][3];
          obj8[e] = this.tableitms[i][4];
          obj8[f] = this.tableitms[i][5];
          obj8[g] = this.tableitms[i][6];
          obj8[h] = this.tableitms[i][7];
          obj8[io] = this.tableitms[i][8];
          obj8[j] = this.tableitms[i][9];
          obj8[k] = this.tableitms[i][10];
          obj8[L] = this.tableitms[i][11];
          this.tablelistitems.push(obj8);
        }
      } else if (this.tableitms[0].length == 13) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj9 = {};
          obj9[a] = this.tableitms[i][0];
          obj9[b] = this.tableitms[i][1];
          obj9[c] = this.tableitms[i][2];
          obj9[d] = this.tableitms[i][3];
          obj9[e] = this.tableitms[i][4];
          obj9[f] = this.tableitms[i][5];
          obj9[g] = this.tableitms[i][6];
          obj9[h] = this.tableitms[i][7];
          obj9[io] = this.tableitms[i][8];
          obj9[j] = this.tableitms[i][9];
          obj9[k] = this.tableitms[i][10];
          obj9[L] = this.tableitms[i][11];
          obj9[m] = this.tableitms[i][12];
          this.tablelistitems.push(obj9);
        }
      } else if (this.tableitms[0].length == 14) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj10 = {};
          obj10[a] = this.tableitms[i][0];
          obj10[b] = this.tableitms[i][1];
          obj10[c] = this.tableitms[i][2];
          obj10[d] = this.tableitms[i][3];
          obj10[e] = this.tableitms[i][4];
          obj10[f] = this.tableitms[i][5];
          obj10[g] = this.tableitms[i][6];
          obj10[h] = this.tableitms[i][7];
          obj10[io] = this.tableitms[i][8];
          obj10[j] = this.tableitms[i][9];
          obj10[k] = this.tableitms[i][10];
          obj10[L] = this.tableitms[i][11];
          obj10[m] = this.tableitms[i][12];
          obj10[n] = this.tableitms[i][13];
          this.tablelistitems.push(obj10);
        }
      } else if (this.tableitms[0].length == 15) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj11 = {};
          obj11[a] = this.tableitms[i][0];
          obj11[b] = this.tableitms[i][1];
          obj11[c] = this.tableitms[i][2];
          obj11[d] = this.tableitms[i][3];
          obj11[e] = this.tableitms[i][4];
          obj11[f] = this.tableitms[i][5];
          obj11[g] = this.tableitms[i][6];
          obj11[h] = this.tableitms[i][7];
          obj11[io] = this.tableitms[i][8];
          obj11[j] = this.tableitms[i][9];
          obj11[k] = this.tableitms[i][10];
          obj11[L] = this.tableitms[i][11];
          obj11[m] = this.tableitms[i][12];
          obj11[n] = this.tableitms[i][13];
          obj11[o] = this.tableitms[i][14];
          this.tablelistitems.push(obj11);
        }
      } else if (this.tableitms[0].length == 16) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj12 = {};
          obj12[a] = this.tableitms[i][0];
          obj12[b] = this.tableitms[i][1];
          obj12[c] = this.tableitms[i][2];
          obj12[d] = this.tableitms[i][3];
          obj12[e] = this.tableitms[i][4];
          obj12[f] = this.tableitms[i][5];
          obj12[g] = this.tableitms[i][6];
          obj12[h] = this.tableitms[i][7];
          obj12[io] = this.tableitms[i][8];
          obj12[j] = this.tableitms[i][9];
          obj12[k] = this.tableitms[i][10];
          obj12[L] = this.tableitms[i][11];
          obj12[m] = this.tableitms[i][12];
          obj12[n] = this.tableitms[i][13];
          obj12[o] = this.tableitms[i][14];
          obj12[p] = this.tableitms[i][15];
          this.tablelistitems.push(obj12);
        }
      } else if (this.tableitms[0].length == 17) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj13 = {};
          obj13[a] = this.tableitms[i][0];
          obj13[b] = this.tableitms[i][1];
          obj13[c] = this.tableitms[i][2];
          obj13[d] = this.tableitms[i][3];
          obj13[e] = this.tableitms[i][4];
          obj13[f] = this.tableitms[i][5];
          obj13[g] = this.tableitms[i][6];
          obj13[h] = this.tableitms[i][7];
          obj13[io] = this.tableitms[i][8];
          obj13[j] = this.tableitms[i][9];
          obj13[k] = this.tableitms[i][10];
          obj13[L] = this.tableitms[i][11];
          obj13[m] = this.tableitms[i][12];
          obj13[n] = this.tableitms[i][13];
          obj13[o] = this.tableitms[i][14];
          obj13[p] = this.tableitms[i][15];
          obj13[q] = this.tableitms[i][16];
          this.tablelistitems.push(obj13);
        }
      } else if (this.tableitms[0].length == 18) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj14 = {};
          obj14[a] = this.tableitms[i][0];
          obj14[b] = this.tableitms[i][1];
          obj14[c] = this.tableitms[i][2];
          obj14[d] = this.tableitms[i][3];
          obj14[e] = this.tableitms[i][4];
          obj14[f] = this.tableitms[i][5];
          obj14[g] = this.tableitms[i][6];
          obj14[h] = this.tableitms[i][7];
          obj14[io] = this.tableitms[i][8];
          obj14[j] = this.tableitms[i][9];
          obj14[k] = this.tableitms[i][10];
          obj14[L] = this.tableitms[i][11];
          obj14[m] = this.tableitms[i][12];
          obj14[n] = this.tableitms[i][13];
          obj14[o] = this.tableitms[i][14];
          obj14[p] = this.tableitms[i][15];
          obj14[q] = this.tableitms[i][16];
          obj14[r] = this.tableitms[i][17];
          this.tablelistitems.push(obj14);
        }
      } else if (this.tableitms[0].length == 19) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj15 = {};
          obj15[a] = this.tableitms[i][0];
          obj15[b] = this.tableitms[i][1];
          obj15[c] = this.tableitms[i][2];
          obj15[d] = this.tableitms[i][3];
          obj15[e] = this.tableitms[i][4];
          obj15[f] = this.tableitms[i][5];
          obj15[g] = this.tableitms[i][6];
          obj15[h] = this.tableitms[i][7];
          obj15[io] = this.tableitms[i][8];
          obj15[j] = this.tableitms[i][9];
          obj15[k] = this.tableitms[i][10];
          obj15[L] = this.tableitms[i][11];
          obj15[m] = this.tableitms[i][12];
          obj15[n] = this.tableitms[i][13];
          obj15[o] = this.tableitms[i][14];
          obj15[p] = this.tableitms[i][15];
          obj15[q] = this.tableitms[i][16];
          obj15[r] = this.tableitms[i][17];
          obj15[s] = this.tableitms[i][18];
          this.tablelistitems.push(obj15);
        }
      } else if (this.tableitms[0].length == 20) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj16 = {};
          obj16[a] = this.tableitms[i][0];
          obj16[b] = this.tableitms[i][1];
          obj16[c] = this.tableitms[i][2];
          obj16[d] = this.tableitms[i][3];
          obj16[e] = this.tableitms[i][4];
          obj16[f] = this.tableitms[i][5];
          obj16[g] = this.tableitms[i][6];
          obj16[h] = this.tableitms[i][7];
          obj16[io] = this.tableitms[i][8];
          obj16[j] = this.tableitms[i][9];
          obj16[k] = this.tableitms[i][10];
          obj16[L] = this.tableitms[i][11];
          obj16[m] = this.tableitms[i][12];
          obj16[n] = this.tableitms[i][13];
          obj16[o] = this.tableitms[i][14];
          obj16[p] = this.tableitms[i][15];
          obj16[q] = this.tableitms[i][16];
          obj16[r] = this.tableitms[i][17];
          obj16[s] = this.tableitms[i][18];
          obj16[t] = this.tableitms[i][19];
          this.tablelistitems.push(obj16);
        }
      } else if (this.tableitms[0].length == 21) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj17 = {};
          obj17[a] = this.tableitms[i][0];
          obj17[b] = this.tableitms[i][1];
          obj17[c] = this.tableitms[i][2];
          obj17[d] = this.tableitms[i][3];
          obj17[e] = this.tableitms[i][4];
          obj17[f] = this.tableitms[i][5];
          obj17[g] = this.tableitms[i][6];
          obj17[h] = this.tableitms[i][7];
          obj17[io] = this.tableitms[i][8];
          obj17[j] = this.tableitms[i][9];
          obj17[k] = this.tableitms[i][10];
          obj17[L] = this.tableitms[i][11];
          obj17[m] = this.tableitms[i][12];
          obj17[n] = this.tableitms[i][13];
          obj17[o] = this.tableitms[i][14];
          obj17[p] = this.tableitms[i][15];
          obj17[q] = this.tableitms[i][16];
          obj17[r] = this.tableitms[i][17];
          obj17[s] = this.tableitms[i][18];
          obj17[t] = this.tableitms[i][19];
          obj17[u] = this.tableitms[i][20];
          this.tablelistitems.push(obj17);
        }
      } else if (this.tableitms[0].length == 22) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj18 = {};
          obj18[a] = this.tableitms[i][0];
          obj18[b] = this.tableitms[i][1];
          obj18[c] = this.tableitms[i][2];
          obj18[d] = this.tableitms[i][3];
          obj18[e] = this.tableitms[i][4];
          obj18[f] = this.tableitms[i][5];
          obj18[g] = this.tableitms[i][6];
          obj18[h] = this.tableitms[i][7];
          obj18[io] = this.tableitms[i][8];
          obj18[j] = this.tableitms[i][9];
          obj18[k] = this.tableitms[i][10];
          obj18[L] = this.tableitms[i][11];
          obj18[m] = this.tableitms[i][12];
          obj18[n] = this.tableitms[i][13];
          obj18[o] = this.tableitms[i][14];
          obj18[p] = this.tableitms[i][15];
          obj18[q] = this.tableitms[i][16];
          obj18[r] = this.tableitms[i][17];
          obj18[s] = this.tableitms[i][18];
          obj18[t] = this.tableitms[i][19];
          obj18[u] = this.tableitms[i][20];
          obj18[v] = this.tableitms[i][21];
          this.tablelistitems.push(obj18);
        }
      } else if (this.tableitms[0].length == 23) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj19 = {};
          obj19[a] = this.tableitms[i][0];
          obj19[b] = this.tableitms[i][1];
          obj19[c] = this.tableitms[i][2];
          obj19[d] = this.tableitms[i][3];
          obj19[e] = this.tableitms[i][4];
          obj19[f] = this.tableitms[i][5];
          obj19[g] = this.tableitms[i][6];
          obj19[h] = this.tableitms[i][7];
          obj19[io] = this.tableitms[i][8];
          obj19[j] = this.tableitms[i][9];
          obj19[k] = this.tableitms[i][10];
          obj19[L] = this.tableitms[i][11];
          obj19[m] = this.tableitms[i][12];
          obj19[n] = this.tableitms[i][13];
          obj19[o] = this.tableitms[i][14];
          obj19[p] = this.tableitms[i][15];
          obj19[q] = this.tableitms[i][16];
          obj19[r] = this.tableitms[i][17];
          obj19[s] = this.tableitms[i][18];
          obj19[t] = this.tableitms[i][19];
          obj19[u] = this.tableitms[i][20];
          obj19[v] = this.tableitms[i][21];
          obj19[w] = this.tableitms[i][22];
          this.tablelistitems.push(obj19);
        }
      } else if (this.tableitms[0].length == 24) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj20 = {};
          obj20[a] = this.tableitms[i][0];
          obj20[b] = this.tableitms[i][1];
          obj20[c] = this.tableitms[i][2];
          obj20[d] = this.tableitms[i][3];
          obj20[e] = this.tableitms[i][4];
          obj20[f] = this.tableitms[i][5];
          obj20[g] = this.tableitms[i][6];
          obj20[h] = this.tableitms[i][7];
          obj20[io] = this.tableitms[i][8];
          obj20[j] = this.tableitms[i][9];
          obj20[k] = this.tableitms[i][10];
          obj20[L] = this.tableitms[i][11];
          obj20[m] = this.tableitms[i][12];
          obj20[n] = this.tableitms[i][13];
          obj20[o] = this.tableitms[i][14];
          obj20[p] = this.tableitms[i][15];
          obj20[q] = this.tableitms[i][16];
          obj20[r] = this.tableitms[i][17];
          obj20[s] = this.tableitms[i][18];
          obj20[t] = this.tableitms[i][19];
          obj20[u] = this.tableitms[i][20];
          obj20[v] = this.tableitms[i][21];
          obj20[w] = this.tableitms[i][22];
          obj20[x] = this.tableitms[i][23];
          this.tablelistitems.push(obj20);
        }
      } else if (this.tableitms[0].length == 25) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj21 = {};
          obj21[a] = this.tableitms[i][0];
          obj21[b] = this.tableitms[i][1];
          obj21[c] = this.tableitms[i][2];
          obj21[d] = this.tableitms[i][3];
          obj21[e] = this.tableitms[i][4];
          obj21[f] = this.tableitms[i][5];
          obj21[g] = this.tableitms[i][6];
          obj21[h] = this.tableitms[i][7];
          obj21[io] = this.tableitms[i][8];
          obj21[j] = this.tableitms[i][9];
          obj21[k] = this.tableitms[i][10];
          obj21[L] = this.tableitms[i][11];
          obj21[m] = this.tableitms[i][12];
          obj21[n] = this.tableitms[i][13];
          obj21[o] = this.tableitms[i][14];
          obj21[p] = this.tableitms[i][15];
          obj21[q] = this.tableitms[i][16];
          obj21[r] = this.tableitms[i][17];
          obj21[s] = this.tableitms[i][18];
          obj21[t] = this.tableitms[i][19];
          obj21[u] = this.tableitms[i][20];
          obj21[v] = this.tableitms[i][21];
          obj21[w] = this.tableitms[i][22];
          obj21[x] = this.tableitms[i][23];
          obj21[y] = this.tableitms[i][24];
          this.tablelistitems.push(obj21);
          // console.log(this.tablelistitems)
        }
      } else if (this.tableitms[0].length == 26) {
        for (let i = 0; i < this.tableitms.length; i++) {
          var obj22 = {};
          obj22[a] = this.tableitms[i][0];
          obj22[b] = this.tableitms[i][1];
          obj22[c] = this.tableitms[i][2];
          obj22[d] = this.tableitms[i][3];
          obj22[e] = this.tableitms[i][4];
          obj22[f] = this.tableitms[i][5];
          obj22[g] = this.tableitms[i][6];
          obj22[h] = this.tableitms[i][7];
          obj22[io] = this.tableitms[i][8];
          obj22[j] = this.tableitms[i][9];
          obj22[k] = this.tableitms[i][10];
          obj22[L] = this.tableitms[i][11];
          obj22[m] = this.tableitms[i][12];
          obj22[n] = this.tableitms[i][13];
          obj22[o] = this.tableitms[i][14];
          obj22[p] = this.tableitms[i][15];
          obj22[q] = this.tableitms[i][16];
          obj22[r] = this.tableitms[i][17];
          obj22[s] = this.tableitms[i][18];
          obj22[t] = this.tableitms[i][19];
          obj22[u] = this.tableitms[i][20];
          obj22[v] = this.tableitms[i][21];
          obj22[w] = this.tableitms[i][22];
          obj22[x] = this.tableitms[i][23];
          obj22[y] = this.tableitms[i][24];
          obj22[z] = this.tableitms[i][25];
          this.tablelistitems.push(obj22);
          // console.log("2222222222222222222", this.tablelistitems);
        }
      }
      // else if(this.tableitms[0].length > 27){
      //   console.log('大于27了--------------------');
      //   this.Tabudataparsingss();
      //   console.log('自调用函数--------------------',this.tablelistitems);
      // }
    },

    //分页数据列表解析方法
    Tabudataparsing() {
      this.tablelist = [];
      // console.log("------------------------", this.listdata);
      var titlelist = this.listdata[0];
      var a = titlelist[0];
      var b = titlelist[1];
      var c = titlelist[2];
      var d = titlelist[3];
      var e = titlelist[4];
      var f = titlelist[5];
      var g = titlelist[6];
      var h = titlelist[7];
      var io = titlelist[8];
      var j = titlelist[9];
      var k = titlelist[10];
      var L = titlelist[11];
      var m = titlelist[12];
      var n = titlelist[13];
      var o = titlelist[14];
      var p = titlelist[15];
      var q = titlelist[16];
      var r = titlelist[17];
      var s = titlelist[18];
      var t = titlelist[19];
      var u = titlelist[20];
      var v = titlelist[21];
      var w = titlelist[22];
      var x = titlelist[23];
      var y = titlelist[24];
      var z = titlelist[25];
      if (this.listdata[0].length == 2) {
        for (let i = 1; i < this.listdata.length; i++) {
          var objon = {};
          objon[a] = this.listdata[i][0];
          objon[b] = this.listdata[i][1];
          this.tablelist.push(objon);
        }
      } else if (this.listdata[0].length == 3) {
        for (let i = 1; i < this.listdata.length; i++) {
          var obj0 = {};
          obj0[a] = this.listdata[i][0];
          obj0[b] = this.listdata[i][1];
          obj0[c] = this.listdata[i][2];
          // obj[d] = this.bartable[i][3];
          this.tablelist.push(obj0);
        }
      } else if (this.listdata[0].length == 4) {
        for (let i = 1; i < this.listdata.length; i++) {
          var obj = {};
          obj[a] = this.listdata[i][0];
          obj[b] = this.listdata[i][1];
          obj[c] = this.listdata[i][2];
          obj[d] = this.listdata[i][3];
          this.tablelist.push(obj);
        }
      } else if (this.listdata[0].length == 5) {
        for (let i = 1; i < this.listdata.length; i++) {
          var obj1 = {};
          obj1[a] = this.listdata[i][0];
          obj1[b] = this.listdata[i][1];
          obj1[c] = this.listdata[i][2];
          obj1[d] = this.listdata[i][3];
          obj1[e] = this.listdata[i][4];
          this.tablelist.push(obj1);
        }
      } else if (this.listdata[0].length == 6) {
        for (let i = 1; i < this.listdata.length; i++) {
          var obj2 = {};
          obj2[a] = this.listdata[i][0];
          obj2[b] = this.listdata[i][1];
          obj2[c] = this.listdata[i][2];
          obj2[d] = this.listdata[i][3];
          obj2[e] = this.listdata[i][4];
          obj2[f] = this.listdata[i][5];
          this.tablelist.push(obj2);
        }
      } else if (this.listdata[0].length == 7) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj3 = {};
          obj3[a] = this.listdata[i][0];
          obj3[b] = this.listdata[i][1];
          obj3[c] = this.listdata[i][2];
          obj3[d] = this.listdata[i][3];
          obj3[e] = this.listdata[i][4];
          obj3[f] = this.listdata[i][5];
          obj3[g] = this.listdata[i][6];
          this.tablelist.push(obj3);
        }
      } else if (this.listdata[0].length == 8) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj4 = {};
          obj4[a] = this.listdata[i][0];
          obj4[b] = this.listdata[i][1];
          obj4[c] = this.listdata[i][2];
          obj4[d] = this.listdata[i][3];
          obj4[e] = this.listdata[i][4];
          obj4[f] = this.listdata[i][5];
          obj4[g] = this.listdata[i][6];
          obj4[h] = this.listdata[i][7];
          this.tablelist.push(obj4);
          // console.log('pppppppppppppppppppppp',this.tablelist)
        }
      } else if (this.listdata[0].length == 9) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj5 = {};
          obj5[a] = this.listdata[i][0];
          obj5[b] = this.listdata[i][1];
          obj5[c] = this.listdata[i][2];
          obj5[d] = this.listdata[i][3];
          obj5[e] = this.listdata[i][4];
          obj5[f] = this.listdata[i][5];
          obj5[g] = this.listdata[i][6];
          obj5[h] = this.listdata[i][7];
          obj5[io] = this.listdata[i][8];
          this.tablelist.push(obj5);
        }
      } else if (this.listdata[0].length == 10) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj6 = {};
          obj6[a] = this.listdata[i][0];
          obj6[b] = this.listdata[i][1];
          obj6[c] = this.listdata[i][2];
          obj6[d] = this.listdata[i][3];
          obj6[e] = this.listdata[i][4];
          obj6[f] = this.listdata[i][5];
          obj6[g] = this.listdata[i][6];
          obj6[h] = this.listdata[i][7];
          obj6[io] = this.listdata[i][8];
          obj6[j] = this.listdata[i][9];
          this.tablelist.push(obj6);
        }
      } else if (this.listdata[0].length == 11) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj7 = {};
          obj7[a] = this.listdata[i][0];
          obj7[b] = this.listdata[i][1];
          obj7[c] = this.listdata[i][2];
          obj7[d] = this.listdata[i][3];
          obj7[e] = this.listdata[i][4];
          obj7[f] = this.listdata[i][5];
          obj7[g] = this.listdata[i][6];
          obj7[h] = this.listdata[i][7];
          obj7[io] = this.listdata[i][8];
          obj7[j] = this.listdata[i][9];
          obj7[k] = this.listdata[i][10];
          this.tablelist.push(obj7);
        }
      } else if (this.listdata[0].length == 12) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj8 = {};
          obj8[a] = this.listdata[i][0];
          obj8[b] = this.listdata[i][1];
          obj8[c] = this.listdata[i][2];
          obj8[d] = this.listdata[i][3];
          obj8[e] = this.listdata[i][4];
          obj8[f] = this.listdata[i][5];
          obj8[g] = this.listdata[i][6];
          obj8[h] = this.listdata[i][7];
          obj8[io] = this.listdata[i][8];
          obj8[j] = this.listdata[i][9];
          obj8[k] = this.listdata[i][10];
          obj8[L] = this.listdata[i][11];
          this.tablelist.push(obj8);
        }
      } else if (this.listdata[0].length == 13) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj9 = {};
          obj9[a] = this.listdata[i][0];
          obj9[b] = this.listdata[i][1];
          obj9[c] = this.listdata[i][2];
          obj9[d] = this.listdata[i][3];
          obj9[e] = this.listdata[i][4];
          obj9[f] = this.listdata[i][5];
          obj9[g] = this.listdata[i][6];
          obj9[h] = this.listdata[i][7];
          obj9[io] = this.listdata[i][8];
          obj9[j] = this.listdata[i][9];
          obj9[k] = this.listdata[i][10];
          obj9[L] = this.listdata[i][11];
          obj9[m] = this.listdata[i][12];
          this.tablelist.push(obj9);
        }
      } else if (this.listdata[0].length == 14) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj10 = {};
          obj10[a] = this.listdata[i][0];
          obj10[b] = this.listdata[i][1];
          obj10[c] = this.listdata[i][2];
          obj10[d] = this.listdata[i][3];
          obj10[e] = this.listdata[i][4];
          obj10[f] = this.listdata[i][5];
          obj10[g] = this.listdata[i][6];
          obj10[h] = this.listdata[i][7];
          obj10[io] = this.listdata[i][8];
          obj10[j] = this.listdata[i][9];
          obj10[k] = this.listdata[i][10];
          obj10[L] = this.listdata[i][11];
          obj10[m] = this.listdata[i][12];
          obj10[n] = this.listdata[i][13];
          this.tablelist.push(obj10);
        }
      } else if (this.listdata[0].length == 15) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj11 = {};
          obj11[a] = this.listdata[i][0];
          obj11[b] = this.listdata[i][1];
          obj11[c] = this.listdata[i][2];
          obj11[d] = this.listdata[i][3];
          obj11[e] = this.listdata[i][4];
          obj11[f] = this.listdata[i][5];
          obj11[g] = this.listdata[i][6];
          obj11[h] = this.listdata[i][7];
          obj11[io] = this.listdata[i][8];
          obj11[j] = this.listdata[i][9];
          obj11[k] = this.listdata[i][10];
          obj11[L] = this.listdata[i][11];
          obj11[m] = this.listdata[i][12];
          obj11[n] = this.listdata[i][13];
          obj11[o] = this.listdata[i][14];
          this.tablelist.push(obj11);
        }
      } else if (this.listdata[0].length == 16) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj12 = {};
          obj12[a] = this.listdata[i][0];
          obj12[b] = this.listdata[i][1];
          obj12[c] = this.listdata[i][2];
          obj12[d] = this.listdata[i][3];
          obj12[e] = this.listdata[i][4];
          obj12[f] = this.listdata[i][5];
          obj12[g] = this.listdata[i][6];
          obj12[h] = this.listdata[i][7];
          obj12[io] = this.listdata[i][8];
          obj12[j] = this.listdata[i][9];
          obj12[k] = this.listdata[i][10];
          obj12[L] = this.listdata[i][11];
          obj12[m] = this.listdata[i][12];
          obj12[n] = this.listdata[i][13];
          obj12[o] = this.listdata[i][14];
          obj12[p] = this.listdata[i][15];
          this.tablelist.push(obj12);
        }
      } else if (this.listdata[0].length == 17) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj13 = {};
          obj13[a] = this.listdata[i][0];
          obj13[b] = this.listdata[i][1];
          obj13[c] = this.listdata[i][2];
          obj13[d] = this.listdata[i][3];
          obj13[e] = this.listdata[i][4];
          obj13[f] = this.listdata[i][5];
          obj13[g] = this.listdata[i][6];
          obj13[h] = this.listdata[i][7];
          obj13[io] = this.listdata[i][8];
          obj13[j] = this.listdata[i][9];
          obj13[k] = this.listdata[i][10];
          obj13[L] = this.listdata[i][11];
          obj13[m] = this.listdata[i][12];
          obj13[n] = this.listdata[i][13];
          obj13[o] = this.listdata[i][14];
          obj13[p] = this.listdata[i][15];
          obj13[q] = this.listdata[i][16];
          this.tablelist.push(obj13);
        }
      } else if (this.listdata[0].length == 18) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj14 = {};
          obj14[a] = this.listdata[i][0];
          obj14[b] = this.listdata[i][1];
          obj14[c] = this.listdata[i][2];
          obj14[d] = this.listdata[i][3];
          obj14[e] = this.listdata[i][4];
          obj14[f] = this.listdata[i][5];
          obj14[g] = this.listdata[i][6];
          obj14[h] = this.listdata[i][7];
          obj14[io] = this.listdata[i][8];
          obj14[j] = this.listdata[i][9];
          obj14[k] = this.listdata[i][10];
          obj14[L] = this.listdata[i][11];
          obj14[m] = this.listdata[i][12];
          obj14[n] = this.listdata[i][13];
          obj14[o] = this.listdata[i][14];
          obj14[p] = this.listdata[i][15];
          obj14[q] = this.listdata[i][16];
          obj14[r] = this.listdata[i][17];
          this.tablelist.push(obj14);
        }
      } else if (this.listdata[0].length == 19) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj15 = {};
          obj15[a] = this.listdata[i][0];
          obj15[b] = this.listdata[i][1];
          obj15[c] = this.listdata[i][2];
          obj15[d] = this.listdata[i][3];
          obj15[e] = this.listdata[i][4];
          obj15[f] = this.listdata[i][5];
          obj15[g] = this.listdata[i][6];
          obj15[h] = this.listdata[i][7];
          obj15[io] = this.listdata[i][8];
          obj15[j] = this.listdata[i][9];
          obj15[k] = this.listdata[i][10];
          obj15[L] = this.listdata[i][11];
          obj15[m] = this.listdata[i][12];
          obj15[n] = this.listdata[i][13];
          obj15[o] = this.listdata[i][14];
          obj15[p] = this.listdata[i][15];
          obj15[q] = this.listdata[i][16];
          obj15[r] = this.listdata[i][17];
          obj15[s] = this.listdata[i][18];
          this.tablelist.push(obj15);
        }
      } else if (this.listdata[0].length == 20) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj16 = {};
          obj16[a] = this.listdata[i][0];
          obj16[b] = this.listdata[i][1];
          obj16[c] = this.listdata[i][2];
          obj16[d] = this.listdata[i][3];
          obj16[e] = this.listdata[i][4];
          obj16[f] = this.listdata[i][5];
          obj16[g] = this.listdata[i][6];
          obj16[h] = this.listdata[i][7];
          obj16[io] = this.listdata[i][8];
          obj16[j] = this.listdata[i][9];
          obj16[k] = this.listdata[i][10];
          obj16[L] = this.listdata[i][11];
          obj16[m] = this.listdata[i][12];
          obj16[n] = this.listdata[i][13];
          obj16[o] = this.listdata[i][14];
          obj16[p] = this.listdata[i][15];
          obj16[q] = this.listdata[i][16];
          obj16[r] = this.listdata[i][17];
          obj16[s] = this.listdata[i][18];
          obj16[t] = this.listdata[i][19];
          this.tablelist.push(obj16);
        }
      } else if (this.listdata[0].length == 21) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj17 = {};
          obj17[a] = this.listdata[i][0];
          obj17[b] = this.listdata[i][1];
          obj17[c] = this.listdata[i][2];
          obj17[d] = this.listdata[i][3];
          obj17[e] = this.listdata[i][4];
          obj17[f] = this.listdata[i][5];
          obj17[g] = this.listdata[i][6];
          obj17[h] = this.listdata[i][7];
          obj17[io] = this.listdata[i][8];
          obj17[j] = this.listdata[i][9];
          obj17[k] = this.listdata[i][10];
          obj17[L] = this.listdata[i][11];
          obj17[m] = this.listdata[i][12];
          obj17[n] = this.listdata[i][13];
          obj17[o] = this.listdata[i][14];
          obj17[p] = this.listdata[i][15];
          obj17[q] = this.listdata[i][16];
          obj17[r] = this.listdata[i][17];
          obj17[s] = this.listdata[i][18];
          obj17[t] = this.listdata[i][19];
          obj17[u] = this.listdata[i][20];
          this.tablelist.push(obj17);
        }
      } else if (this.listdata[0].length == 22) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj18 = {};
          obj18[a] = this.listdata[i][0];
          obj18[b] = this.listdata[i][1];
          obj18[c] = this.listdata[i][2];
          obj18[d] = this.listdata[i][3];
          obj18[e] = this.listdata[i][4];
          obj18[f] = this.listdata[i][5];
          obj18[g] = this.listdata[i][6];
          obj18[h] = this.listdata[i][7];
          obj18[io] = this.listdata[i][8];
          obj18[j] = this.listdata[i][9];
          obj18[k] = this.listdata[i][10];
          obj18[L] = this.listdata[i][11];
          obj18[m] = this.listdata[i][12];
          obj18[n] = this.listdata[i][13];
          obj18[o] = this.listdata[i][14];
          obj18[p] = this.listdata[i][15];
          obj18[q] = this.listdata[i][16];
          obj18[r] = this.listdata[i][17];
          obj18[s] = this.listdata[i][18];
          obj18[t] = this.listdata[i][19];
          obj18[u] = this.listdata[i][20];
          obj18[v] = this.listdata[i][21];
          this.tablelist.push(obj18);
        }
      } else if (this.listdata[0].length == 23) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj19 = {};
          obj19[a] = this.listdata[i][0];
          obj19[b] = this.listdata[i][1];
          obj19[c] = this.listdata[i][2];
          obj19[d] = this.listdata[i][3];
          obj19[e] = this.listdata[i][4];
          obj19[f] = this.listdata[i][5];
          obj19[g] = this.listdata[i][6];
          obj19[h] = this.listdata[i][7];
          obj19[io] = this.listdata[i][8];
          obj19[j] = this.listdata[i][9];
          obj19[k] = this.listdata[i][10];
          obj19[L] = this.listdata[i][11];
          obj19[m] = this.listdata[i][12];
          obj19[n] = this.listdata[i][13];
          obj19[o] = this.listdata[i][14];
          obj19[p] = this.listdata[i][15];
          obj19[q] = this.listdata[i][16];
          obj19[r] = this.listdata[i][17];
          obj19[s] = this.listdata[i][18];
          obj19[t] = this.listdata[i][19];
          obj19[u] = this.listdata[i][20];
          obj19[v] = this.listdata[i][21];
          obj19[w] = this.listdata[i][22];
          this.tablelist.push(obj19);
        }
      } else if (this.listdata[0].length == 24) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj20 = {};
          obj20[a] = this.listdata[i][0];
          obj20[b] = this.listdata[i][1];
          obj20[c] = this.listdata[i][2];
          obj20[d] = this.listdata[i][3];
          obj20[e] = this.listdata[i][4];
          obj20[f] = this.listdata[i][5];
          obj20[g] = this.listdata[i][6];
          obj20[h] = this.listdata[i][7];
          obj20[io] = this.listdata[i][8];
          obj20[j] = this.listdata[i][9];
          obj20[k] = this.listdata[i][10];
          obj20[L] = this.listdata[i][11];
          obj20[m] = this.listdata[i][12];
          obj20[n] = this.listdata[i][13];
          obj20[o] = this.listdata[i][14];
          obj20[p] = this.listdata[i][15];
          obj20[q] = this.listdata[i][16];
          obj20[r] = this.listdata[i][17];
          obj20[s] = this.listdata[i][18];
          obj20[t] = this.listdata[i][19];
          obj20[u] = this.listdata[i][20];
          obj20[v] = this.listdata[i][21];
          obj20[w] = this.listdata[i][22];
          obj20[x] = this.listdata[i][23];
          this.tablelist.push(obj20);
        }
      } else if (this.listdata[0].length == 25) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj21 = {};
          obj21[a] = this.listdata[i][0];
          obj21[b] = this.listdata[i][1];
          obj21[c] = this.listdata[i][2];
          obj21[d] = this.listdata[i][3];
          obj21[e] = this.listdata[i][4];
          obj21[f] = this.listdata[i][5];
          obj21[g] = this.listdata[i][6];
          obj21[h] = this.listdata[i][7];
          obj21[io] = this.listdata[i][8];
          obj21[j] = this.listdata[i][9];
          obj21[k] = this.listdata[i][10];
          obj21[L] = this.listdata[i][11];
          obj21[m] = this.listdata[i][12];
          obj21[n] = this.listdata[i][13];
          obj21[o] = this.listdata[i][14];
          obj21[p] = this.listdata[i][15];
          obj21[q] = this.listdata[i][16];
          obj21[r] = this.listdata[i][17];
          obj21[s] = this.listdata[i][18];
          obj21[t] = this.listdata[i][19];
          obj21[u] = this.listdata[i][20];
          obj21[v] = this.listdata[i][21];
          obj21[w] = this.listdata[i][22];
          obj21[x] = this.listdata[i][23];
          obj21[y] = this.listdata[i][24];
          this.tablelist.push(obj21);
        }
      } else if (this.listdata[0].length == 26) {
        for (let i = 0; i < this.listdata.length; i++) {
          var obj22 = {};
          obj22[a] = this.listdata[i][0];
          obj22[b] = this.listdata[i][1];
          obj22[c] = this.listdata[i][2];
          obj22[d] = this.listdata[i][3];
          obj22[e] = this.listdata[i][4];
          obj22[f] = this.listdata[i][5];
          obj22[g] = this.listdata[i][6];
          obj22[h] = this.listdata[i][7];
          obj22[io] = this.listdata[i][8];
          obj22[j] = this.listdata[i][9];
          obj22[k] = this.listdata[i][10];
          obj22[L] = this.listdata[i][11];
          obj22[m] = this.listdata[i][12];
          obj22[n] = this.listdata[i][13];
          obj22[o] = this.listdata[i][14];
          obj22[p] = this.listdata[i][15];
          obj22[q] = this.listdata[i][16];
          obj22[r] = this.listdata[i][17];
          obj22[s] = this.listdata[i][18];
          obj22[t] = this.listdata[i][19];
          obj22[u] = this.listdata[i][20];
          obj22[v] = this.listdata[i][21];
          obj22[w] = this.listdata[i][22];
          obj22[x] = this.listdata[i][23];
          obj22[y] = this.listdata[i][24];
          obj22[z] = this.listdata[i][25];
          this.tablelist.push(obj22);
        }
      }
    },

    cancelget() {
      // console.log("-----------------------终止请求");
      this.Popup_show = false;
      this.cancel();
      clearInterval(this.Popup_timer);
    },
    ////柱状图
    staff_bra() {
      let mythreebara = this.$echarts.init(document.getElementById("staff_bra"));
      var dataname = [];
      var datanum = [];
      for (let i = 0; i < this.staffbar.length; i++) {
        dataname.push(this.staffbar[i].key);
        datanum.push(this.staffbar[i].value);
      }
      var options ={
        title:
        [ 
              {
              text: "人员产能",
              x: "center",
              y: "5%",
              textStyle: {
                fontSize: 13,
                fontWeight: 100,
              },
            },
              {
                  subtext:"纵轴单位(产能片数)",
                  subtextStyle:{
                  align:"left",
                  lineHeight: 66,
                  fontSize:10,
                    padding: 15,
                }
              }
        ],
        color: ["#3398DB"],
        tooltip: {
          trigger: "item",
          axisPointer: {
            // 坐标轴指示器，坐标轴触发有效
            type: "shadow", // 默认为直线，可选为：'line' | 'shadow'
          },
        },
        legend: {
          data: ["Total", "员工"],
          // left: "85%",
        },
        grid: {
          left: "3%",
          right: "4%",
          bottom: "3%",
          containLabel: true,
        },
        xAxis: [
          {
            type: "category",
            data: dataname,
            axisLabel: {
              interval: 0,
              rotate: 60,
            },
            axisTick: {
              alignWithLabel: true,
            },
          },
        ],
        yAxis: [
          {
            type: "value",
          },
        ],
        dataZoom: [
          {
            type: "slider",
            show: true,
            start: 0,
            end: 100,
            handleSize: 8,
          },
          {
            type: "inside",
            start: 0,
            end: 100,
          },
          {
            type: "slider",
            show: true,
            yAxisIndex: 0,
            filterMode: "empty",
            width: 12,
            height: "70%",
            handleSize: 8,
            showDataShadow: false,
            left: "93%",
          },
        ],
        series: [
          {
            name: "员工",
            type: "bar",
            barWidth: "10%",
            data: datanum,
          },
          {
            name: "Total",
            type: "line",
            label:{
              show:true
            },
            lineStyle: {
              normal: {
                type: "dashed",
                color: "#000",
              },
            },
            smooth: false,
            markPoint: {
              symbolOffset: ["70%", "90%"],
            },
            data: datanum,
          },
        ],
      }
       window.onresize = function(){
         mythreebara.resize()
        }
         mythreebara.setOption(options);
    },

    staff_bin() {
      let mythreebarv = this.$echarts.init(document.getElementById("staff_bin"));
      var binkey = [];
      var binname = [];
      var binval = [];
      for (let i = 0; i < this.staffbin.length; i++) {
        binkey.push(this.staffbin[i].key);
      }
      this.staffbin.forEach((ele) => {
        ele.name = ele.key;
        binname.push(ele);
        binval.push(ele.val);
      });
       var optinons = {
        tooltip: {
          trigger: "item",
          formatter: "{a} <br/>{b}: {c} ({d}%)",
        },
        legend: {
          type: "scroll",
          // orient: "vertical",
          right: 10,
          top: 20,
          bottom: 20,
          x: "10%",
          y: "20%",
          orient: "vertical",
          left: 10,
          data: binkey,
        },
        series: [
          {
            name: "",
            type: "pie",
            radius: ["45%", "70%"],
            center: ["65%", "50%"],
            avoidLabelOverlap: false,
            label: {
              show: true,
              position:'inner', //标签的位置
              formatter: '{d}%',
              textStyle : {
                fontWeight : 100 ,
                 fontSize : 12   //文字的字体大小
                 },
            },
            emphasis: {
              label: {
                show: false,
                fontSize: "10",
                fontWeight: "bold",
                // formatter: '{b} : {c} ({d}%)',
                formatter: function (params) {
                  // console.log('-----------------------',params);
                  var html;
                  html = "该人员产能统计为 ：" + params.data.value;
                  return html;
                },
              },
            },
            labelLine: {
              show: false,
            },
            data: binname,
          },
        ],
      }  
      window.onresize = function(){
        mythreebarv.resize()
        }
        mythreebarv.setOption(optinons);
    },
   

    query_contion() {
      let query_contion = this.$echarts.init(
        document.getElementById("query_contion")
      );
      // console.log("折线图内部数据", this.lineChart);
      var datalist = [];
      var itemkey = [];
      var timeys = [];
      var list = [];

      for (let i = 0; i < this.lineChart.length; i++) {
        itemkey.push(this.lineChart[i].name);
        datalist = this.lineChart[i].content;
      }
      for (let i = 0; i < datalist.length; i++) {
        timeys.push(datalist[i].time);
      }
      this.lineChart.forEach((ele) => {
        list.push({
          name: ele.name,
          data: ele.content.map((item) => {
            return item.val;
          }),
          type: "bar",
          stack: "a",
          barWidth: "15%",
          label: {
            show: false,
          },
        });
      });
       var option ={
        tooltip: {
          trigger: "axis",
          axisPointer: {
            // 坐标轴指示器，坐标轴触发有效
            type: "shadow", // 默认为直线，可选为：'line' | 'shadow'
          },
          position: function (point, params, dom, rect, size) {
            // 鼠标坐标和提示框位置的参考坐标系是：以外层div的左上角那一点为原点，x轴向右，y轴向下
            // 提示框位置
            var x = 0; // x坐标位置
            var y = 0; // y坐标位置

            // 当前鼠标位置
            var pointX = point[0];
            var pointY = point[1];

            // 外层div大小
            // var viewWidth = size.viewSize[0];
            // var viewHeight = size.viewSize[1];

            // 提示框大小
            var boxWidth = size.contentSize[0];
            var boxHeight = size.contentSize[1];

            // boxWidth > pointX 说明鼠标左边放不下提示框
            if (boxWidth > pointX) {
              x = 5;
            } else {
              // 左边放的下
              x = pointX - boxWidth;
            }

            // boxHeight > pointY 说明鼠标上边放不下提示框
            if (boxHeight > pointY) {
              y = 5;
            } else {
              // 上边放得下
              y = pointY - boxHeight;
            }

            return [x, y];
          },
        },
        title: [
           {
              text: "人工检测站点效能统计",
              x: "center",
              y: "0%",
              textStyle: {
                fontSize: 15,
                fontWeight: 200,
              },
            },
            {
              subtext: "纵轴单位(片数)",
              subtextStyle: {
                align: "left",
                lineHeight: 106,
                fontSize: 10,
                padding: 25,
                
            },
          },
        ],
        xAxis: {
          type: "category",
          data: timeys,
          axisLabel: {
            interval: 0,
            rotate: 60,
          },
        },
        legend: {
          type: "scroll",
          // orient: "vertical",
          // right:50,
          left: 50,
          top: 20,
          bottom: 20,
          x: "10%",
          y: "20%",
          data: itemkey,
          // top: "10%",
        },
        grid: {
          top: 70,
          bottom: 50,
        },
        yAxis: {
          type: "value",
          //   height:"",
          axisLabel: {
            show: true,
            // formatter:'{value}%',
            interval: "auto",
          },
        },
        dataZoom: [
          {
            type: "slider",
            show: true,
            start: 0,
            end: 100,
            handleSize: 8,
          },
          {
            type: "inside",
            start: 0,
            end: 100,
          },
          {
            type: "slider",
            show: true,
            yAxisIndex: 0,
            filterMode: "empty",
            width: 12,
            height: "70%",
            handleSize: 8,
            showDataShadow: false,
            left: "93%",
          },
        ],

        series: list,
      } 
     window.onresize = function(){
       query_contion.resize()
        }
       query_contion.setOption(option,true);
       
       var selected = {};
       var isShow;
      for (var i = 0; i < option.series.length; i++) {
        selected[option.series[i].name] = true;
        isShow = false;
        if (i == option.series.length - 1) {
          isShow = true;
        }
        option.series[i].label = {
          normal: {
            show: isShow,
            position: "top",
            textStyle: {
              fontSize: "8px",
            },
          },
        };
      }
      var fun = function (obj) {
        var total = 0;
        for (var key in selected) {
          if (selected[key]) {
            for (var i = 0; i < option.series.length; i++) {
              if (key == option.series[i].name) {
                total += option.series[i].data[obj.dataIndex];
              }
            }
          }
        }
        return total;
      };
      option.series[option.series.length - 1].label.normal.formatter = fun;
      query_contion.setOption(option);
      query_contion.on("legendselectchanged", function (obj) {
        selected = obj.selected;
        var flag = true;
        for (var i = option.series.length - 1; i >= 0; i--) {
          //只展示最后一个没有隐藏的列的label
          if (flag && selected[option.series[i].name]) {
            flag = false;
            option.series[i].label.normal.show = true;
            option.series[i].label.normal.formatter = fun;
          } else {
            option.series[i].label.normal.show = false;
            option.series[i].label.normal.formatter = function () {
              return "";
            };
          }
        }
        //重新设置option
        query_contion.setOption(option);
      });

    },

    loadAll() {
      return [{ value: "", address: "" }];
    },
    querySearch(queryString, cb) {
      var restaurants = this.restaurants;
      var results = queryString
        ? restaurants.filter(this.createFilter(queryString))
        : restaurants;
      // 调用 callback 返回建议列表的数据
      cb(results);
    },
    createFilter(queryString) {
      return (restaurant) => {
        return (
          restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) ===
          0
        );
      };
    },
    handleSelect(item) {
      console.log(item);
    },
    handleIconClick(ev) {
      console.log(ev);
    },

      // 表格样式设置{ row, column, rowIndex, columnIndex }
    rowClass({column,  columnIndex }) {
      if (columnIndex === 0) {
        return   column.minWidth = 80;
       } else{
         return column.minWidth = 50;
       }
    },
  },
};
</script>

<style  scoped>
.staff_content {
  width: 100%;
  /* border: 1px solid #000; */
}
.staff_serch {
  width: 100%;
  /* border: 1px solid red; */
  background: #ffffff;
  box-shadow: 0px 0px 0px 1.5px #c9c8c8;
  border-radius: 5px 5px 5px 5px;
}
#staff_bra {
  width: 54%;
  height: 320px;
  /* border: 1px solid blue; */
  background: #ffffff;
  margin-top: 10px;
  box-shadow: 0px 0px 0px 1.5px #c9c8c8;
  border-radius: 5px 5px 5px 5px;
}
#staff_bin {
  width: 45%;
  height: 320px;
  /* border: 1px solid #000; */
  background: #ffffff;
  margin-top: 10px;
  box-shadow: 0px 0px 0px 1.5px #c9c8c8;
  border-radius: 5px 5px 5px 5px;
}

.staff_count {
  width: 100%;
  display: flex;
  margin-top: 20px;
  justify-content: space-between;
}

.table_serch {
  width: 100%;
  min-width: 1000px;
  padding-top: 8px;
  /* border: 1px solid red; */
  /* background: #fff; */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.table_serch_labe {
  /* border: 1px solid #000; */
  height: 35px;
  display: flex;
  margin-left: 10px;
  margin-bottom: 10px;
}
.table_serch_labe_title {
  font-size: 11px;
  line-height: 40px;
}
.el-button_eb {
  margin-left: 5px;
  color: #fff;
}
.el-select {
  height: 10px;
  margin-left: -6px;
}
.product {
  width: 130px;
}
.staff_list {
  width: 100%;
  margin-top: 30px;
  background: #ffffff;
  box-shadow: 0px 0px 0px 1.5px #c9c8c8;
  border-radius: 5px 5px 5px 5px;
}

.al_tabl_item >>> th {
  padding: 0 !important;
  height: 30px;
}

.table_loding {
  width: 200px;
  height: 100px;
  border: 1px solid rgb(68, 186, 236);
  position: absolute;
  z-index: 999;
  top: 40%;
  left: 40%;
  border-radius: 5px 5px 5px 5px;
  box-shadow: 0px 0px 0px 1px;
}

.table_title {
  color: rgb(101, 91, 91);
  font-size: 20px;
  text-align: center;
  line-height: 60px;
}
.table_timer {
  color: rgb(101, 91, 91);
  font-size: 20px;
  text-align: center;
  line-height: 10px;
}

/*笔记本全面 */
@media screen and (min-width: 1536px) {
  .upload-demo_box {
    margin-right: 17.9%;
    /* display:none */
  }
}

@media screen and (min-width: 1920px) {
  .airplane
  {
     margin-left:10px;
  }
  .upload-demo_box {
    margin-right: 38.3%;
    /* display:none; */
  }
    .table_btn
    {
      margin-left:0%;
    }

  .el-aulete {
    margin-left: 10px;
  }
  .table_date {
    margin-left: 15px;
  }
  .table_item {
    margin-right:0px;
  }
  .endtimer {
    margin-left: 15px;
  }
  .staff_count {
    width: 100%;
    display: flex;
    margin-top: 30px;
    justify-content: space-between;
  }
  #staff_bra {
    width: 64%;
    height: 400px;
    /* border: 1px solid blue; */
    background: #ffffff;
    margin-top: 10px;
    box-shadow: 0px 0px 0px 1.5px #c9c8c8;
    border-radius: 5px 5px 5px 5px;
  }
  #staff_bin {
    width: 35%;
    height: 400px;
    /* border: 1px solid #000; */
    background: #ffffff;
    margin-top: 10px;
    box-shadow: 0px 0px 0px 1.5px #c9c8c8;
    border-radius: 5px 5px 5px 5px;
  }
  .staff_list {
    width: 100%;
    height: 300px;
    margin-top: 40px;
    background: #ffffff;
    box-shadow: 0px 0px 0px 1.5px #c9c8c8;
    border-radius: 5px 5px 5px 5px;
  }

  /* .staff_list_table
  {
    height:290px;
  } */
}
#query_contion {
  width: 100%;
  height: 400px;
  margin-top: 20px;
  background: #ffffff;
}

.query_table {
  width: 100%;
  /* box-shadow: 0px 0px 0px 1.5px #c9c8c8; */
  border-radius: 5px 5px 5px 5px;
  table-layout: fixed;
  border-collapse: collapse;
  /* border: 1px solid rgb(47, 117, 221); */
}
</style>